<?php

namespace common\models\business;

use Yii;

/**
 * This is the model class for table "new_business_inspection_data".
 *
 * @property string $id
 * @property integer $inspectionid
 * @property string $fieldname
 * @property string $val
 * @property integer $createtime
 * @property string $fieldtype
 */
class NewBusinessInspectionData extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'new_business_inspection_data';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['inspectionid', 'createtime'], 'integer'],
            [['val'], 'required'],
            [['fieldname', 'fieldtype'], 'string', 'max' => 20],
            [['val'], 'string', 'max' => 500],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'inspectionid' => '巡检id',
            'fieldname' => '巡检项目名称',
            'val' => '巡检的项目值',
            'createtime' => '是否删除',
            'fieldtype' => '巡检项目的类型',
        ];
    }
}
